
{% extends "base.html" %}

{% block title %}Registro{% endblock %}

{% block header %}<b>Registro</b>{% endblock %}


{% block content %}

<div id="agregar" class="agregar">
<p>Tome unos minutos para llenar los campos necesarios para su registro. Una vez activada su 
cuenta podra hacer uso de los servicios que ofrece Almost Best Buy Book para usted.</p>
{%for form in formset.forms%}
{% if form.errors %}
{%if not first%}<p class="error"><b>Por favor corrija los siguientes problemas:</b></p>
{{form.errors}}{%endif%}
{% endif %}
{%endfor%}

<form method="post" action="/accounts/register/">
  <p>{{ formset.management_form }} 
    {%for form in formset.forms%}  </p>
  <table width="392" border="0">
    <tr>
      <td width="176">Usuario</td>
      <td width="206">{{form.username}}</td>
    </tr>
    <tr>
      <td width="160">Email</td>
      <td width="209">{{form.email}}</td>
    </tr>
    <tr>
      <td width="160">Password</td>
      <td width="209">{{form.password}}</td>
    </tr>
    <tr>
      <td width="160">Nombre</td>
          <td width="209">{{form.first_name}}</td>
    </tr>
    <tr>
      <td width="160">Apellido</td>
          <td width="209">{{form.last_name}}</td>
    </tr>
    <tr>
      <td width="160">Estado</td>
          <td width="209">{{form.estado}}</td>
    </tr>
    <tr>
      <td width="160">Ciudad</td>
          <td width="209">{{form.ciudad}}</td>
    </tr>
    <tr>
      <td width="160">Codigo Postal</td>
          <td width="209">{{form.codigo_postal}}</td>
    </tr>
    <tr>
      <td width="160">Direccion</td>
          <td width="209">{{form.direccion}}</td>
    </tr>
    <tr>
       <td width="160">Telefono</td>
          <td width="209">{{form.telefono}}</td>
    </tr>
    <tr>
      <td width="160">Tarjeta de Credito</td>
          <td width="209">{{form.tarjeta_tipo}}</td>
    </tr>
    <tr>
      <td width="160">Numero de la Tarjeta</td>
          <td width="209">{{form.tarjeta_numero}}</td>
    </tr>
    <tr>
      <td width="160">Fecha de Expiracion</td>
          <td width="209">{{form.tarjeta_fecha_exp}}</td>
    </tr>
        <tr  style="display:none">
          <td width="160">Ultimo inicio</td>
          <td width="209">{{form.last_login}}</td>
        </tr>
        <tr  style="display:none">
          <td width="160">date joined</td>
          <td width="209">{{form.date_joined}}</td>
        </tr>
  </table>
  <p>&nbsp;</p>


  {%endfor%}
<input name="submit" type="submit" value="submit">
</form>
</div>
{% endblock %}

{% block footer %}
<p>Gracias</p>
{% endblock %}